package com.siao.example.libaray.component.ui
{
	import com.siao.component.Stack;
	import com.siao.display.Align;
	import com.siao.example.common.ui.CommonButton;
	
	/**
	 * 组件菜单
	 * @author SiaoLeon
	 */
	public class ComponentMenuBar extends Stack
	{
		// -------------------------------------------------------------------------------------------------------- 静态常量
		
		// -------------------------------------------------------------------------------------------------------- 静态变量
		
		// -------------------------------------------------------------------------------------------------------- 静态方法
		
		// -------------------------------------------------------------------------------------------------------- 静态函数
		
		// -------------------------------------------------------------------------------------------------------- 属性
		
		/**
		 * 滚动条示例按钮
		 */
		public var btnScrollbar:CommonButton;
		
		/**
		 * 列表示例按钮
		 */
		public var btnList:CommonButton;
		
		/**
		 * 堆栈示例按钮
		 */
		public var btnStack:CommonButton;
		
		/**
		 * 滚动面板示例按钮
		 */
		public var btnScrollPanel:CommonButton;
		
		/**
		 * 滚动列表示例按钮
		 */
		public var btnScrollList:CommonButton;
		
		/**
		 * 下拉菜单示例按钮
		 */
		public var btnComboBox:CommonButton;
		
		// -------------------------------------------------------------------------------------------------------- 变量
		
		// -------------------------------------------------------------------------------------------------------- 构造
		
		/**
		 * 构造函数
		 */
		public function ComponentMenuBar(orientation:uint=3)
		{
			super(orientation);
			
			this.marginTop = 40;
			this.height = 40;
			this.padding = 10;
			this.spacing = 10;
			
			this.contentAlignH = Align.LEFT;
			
			this.draw(0XFF0000, 0.2);
		}
		
		// -------------------------------------------------------------------------------------------------------- 方法
		
		override protected function onAddedToStage():void
		{
			this.btnScrollbar = new CommonButton("滚动条示例");
			this.addChild(this.btnScrollbar);
			
			this.btnList = new CommonButton("列表示例");
			this.addChild(this.btnList);
			
			this.btnStack = new CommonButton("堆栈示例");
			this.addChild(this.btnStack);
			
			this.btnScrollPanel = new CommonButton("滚动面板示例");
			this.addChild(this.btnScrollPanel);
			
			this.btnScrollList = new CommonButton("滚动列表示例");
			this.addChild(this.btnScrollList);
			
			this.btnComboBox = new CommonButton("下拉菜单示例");
			this.addChild(this.btnComboBox);
		}
		
		override protected function onRemovedFromStage():void
		{
			this.clear();
		}
	
		// -------------------------------------------------------------------------------------------------------- 函数
	
	}
}
